<?php

namespace App\Common\Dao\System;

use App\Common\Dao\BaseDao;
use App\Model\CustomerLogLogin;

class CustomerLogLoginDao extends BaseDao
{
    protected function getModel(): CustomerLogLogin
    {
        return new CustomerLogLogin();
    }

    public function search($where){
        return CustomerLogLogin::when(isset($where['account']) && $where['account'] != ''  , function ($query) use ($where) {
            $query->where('account', $where['account']);
        });
    }
}